/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package coda;

/**
 *
 * @author paolo
 */
public class Test {
    public static void main(String[] args){
        Coda c= new Coda();
        for(int i=0; i<100; i++){
            c.push(i);
        }
        int[] primo=c.toArray();
        for(int i=0; i<primo.length; i++){
            System.out.println("primo: "+primo[i]);
        }
        int x=c.pop();
        int[] secondo=c.toArray();
        System.out.println("x: "+x);

        for(int i=0; i<primo.length; i++){
            System.out.println("secondo: "+secondo[i]);
        }
    }

}
